/**
 * @Author: lll
 * @Email:li.lele@vpclub.cn
 * @Date: create in 2020/6/29
 */
package cn.vpclub.admin.web.home;

import cn.vpclub.admin.mapper.TabMenuMapper;
import cn.vpclub.admin.util.BaseResponse;
import cn.vpclub.admin.util.ResponseCodeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "tabMenu")
public class TabMenuController {
    @Autowired
    TabMenuMapper tabMenuMapper;

    @RequestMapping(value = "getTabMenu", method = RequestMethod.POST)
    public BaseResponse getTabMenu() {
        return BaseResponse.info(ResponseCodeEnum.SUCCESS, tabMenuMapper.selectList(null));
    }

}
